home *** CD-ROM | disk | FTP | other *** search
- function end(setTarget, frame)
- {
- setTarget.gotoAndStop(setTarget._totalframes);
- scrubTargetState = "stop";
- }
- function begin(setTarget, frame)
- {
- setTarget.gotoAndStop(frame);
- scrubTargetState = "stop";
- }
- function stopMovie(setTarget)
- {
- setTarget.stop();
- }
- function playMovie(setTarget)
- {
- setTarget.play();
- }
- function scrubHandlePlay(setTarget)
- {
- handle._x = (timeLine._width - handle._width) * (setTarget._currentframe / setTarget._totalframes);
- }
- function scrubHandle(setTarget)
- {
- setTarget.gotoAndStop(int(setTarget._totalframes * (handle._x / (timeLine._width - handle._width))));
- }
- function theCurrentFrame(setTarget)
- {
- return setTarget._currentframe;
- }
- function scrubEngine(theTarget, speed)
- {
- var _loc1_ = theTarget;
- if(scrubDirection == "reverse")
- {
- directionA = _loc1_._currentframe - Number(speed);
- directionB = directionA;
- }
- else
- {
- directionA = _loc1_._currentframe + Number(speed);
- directionB = directionA;
- }
- _loc1_.gotoAndStop(directionA);
- if(directionA < 1)
- {
- _loc1_.gotoAndStop(1);
- }
- if(directionA > _loc1_._totalframes)
- {
- _loc1_.gotoAndStop(target._totalframes);
- scrubTargetState = "stop";
- }
- if(scrubTargetState == "play")
- {
- _loc1_.play();
- }
- else
- {
- _loc1_.stop();
- }
- }
- if(scrubTargetState == "play")
- {
- playMovie(scrubTarget);
- }
- else
- {
- stopMovie(scrubTarget);
- }
-